package com.itcast.googleplay.protocol;

import java.util.List;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.itcast.googleplay.bean.SubjectInfo;

public class SubjectProtocol extends BaseProtocol<List<SubjectInfo>>{
	@Override
	public List<SubjectInfo> processData(String json) {
		Gson gson = new Gson();
		return gson.fromJson(json,new TypeToken<List<SubjectInfo>>(){}.getType());
	}
}
